package com.xioyi.news.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="tb_article")
public class Article extends Common {
	/**
	 * 文章id
	 */
	private Integer articleId;
	/**
	 * 文章名称
	 */
	private String title;
	/**
	 * 
	 */
	private String subTitle;
	/**
	 * 文章内容
	 */
	private String articleContent;
	/**
	 * 文章作者
	 */
	private String author;
	/**
	 * 文章来源地址
	 */
	private String sourceUrl;
	/**
	 * 文章来源名称
	 */
	private String sourcrName;
	/**
	 * 文章分类Id
	 */
	private Integer catalogId;
	/**
	 * 是否为原创
	 */
	private String isOriginal;
	
	@Id
	@GeneratedValue
	@Column(name="ARTICEL_ID")
	public Integer getArticleId() {
		return articleId;
	}
	/**
	 * @return the articleName
	 */
	@Column(name="ARTICLE_NAME",length=225,nullable=false)
	public String getTitle() {
		return title;
	}
	@Column(name="ARTICLE_CONTENT",length=2000)
	public String getArticleContent(){
		return articleContent;
	}
	/**
	 * @return the author
	 */
	@Column(name="AUTHOR")
	public String getAuthor() {
		return author;
	}
	/**
	 * @return the sourceUrl
	 */
	@Column(name="SOURCE_URL")
	public String getSourceUrl() {
		return sourceUrl;
	}
	/**
	 * @return the sourcrName
	 */
	@Column(name="SOURCE_NAME")
	public String getSourcrName() {
		return sourcrName;
	}
	/**
	 * @return the catalogId
	 */
	@Column(name="CATALOG_ID")
	public Integer getCatalogId() {
		return catalogId;
	}
	@Column(name="SUB_TITLE")
	public String getSubTitle() {
		return subTitle;
	}
	@Column(name="IS_ORIGINAL")
	public String getIsOriginal() {
		return isOriginal;
	}
	
	/**
	 * @param articleId the articleId to set
	 */
	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}
	/**
	 * @param articleName the articleName to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 
	 * @param articleContent
	 */
	public void setArticleContent(String articleContent){
		this.articleContent=articleContent;
	}
	/**
	 * @param author the author to set
	 */
	public void setAuthor(String author) {
		this.author = author;
	}
	/**
	 * @param sourceUrl the sourceUrl to set
	 */
	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}
	/**
	 * @param sourcrName the sourcrName to set
	 */
	public void setSourcrName(String sourcrName) {
		this.sourcrName = sourcrName;
	}
	/**
	 * @param catalogId the catalogId to set
	 */
	public void setCatalogId(Integer catalogId) {
		this.catalogId = catalogId;
	}
	
	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	public void setIsOriginal(String isOriginal) {
		this.isOriginal = isOriginal;
	}

	
	
	
}
